//
//  IDCCreateNewPersonViewController.m
//  Single View
//
//  Created by iD Student on 7/12/13.
//  Copyright (c) 2013 jasonkurtzman. All rights reserved.
//

#import "IDCCreateNewPersonViewController.h"
#import "IDCViewController.h"

@interface IDCCreateNewPersonViewController ()

@end

@implementation IDCCreateNewPersonViewController
@synthesize value, ageLabel, nameField;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
    
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    value = 10;
    [ageLabel setText: [NSString stringWithFormat:@"%d", value]];
	// Do any additional setup after loading the view.
}

-(IBAction)valueChanged:(UIStepper *)sender
{
    value = [sender value];
    
    [ageLabel setText:[NSString stringWithFormat:@"%d", value]];
}

-(IBAction) signUpClicked
{
    NSString *nameString = [nameField text];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
